import myAxios from "./axios";

export const BANNER = 'banner';
export const RECOMMEND = 'recommend';


// 获取轮播图
export function getHomeMultidata() {
  console.log("请求轮播图数据中");
  return myAxios({
    url: '/home/multidata'
  })
}

export function getHomeData(type, page) {
  return myAxios({
    url: '/home/data',
    params: {
      type,
      page
    }
  })
}

// 获取首页展示的商品信息
export function getHomeGoods(type, page) {
  console.log("请求首页商品展示数据中");
  return myAxios({
    url: '/home/data',
    params: {
      type,
      page
    }
  })
}
